﻿<html>
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="Microsoft.Help.SelfBranded" content="true" />
    <meta name="Language" content="en-us" />
    <meta name="Microsoft.Help.Locale" content="en-us" />
    <meta name="Microsoft.Help.TopicLocale" content="en-us" />
    <link rel="shortcut icon" href="../icons/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="../styles/branding.css" />
    <link rel="stylesheet" type="text/css" href="../styles/branding-en-US.css" />
    <script type="text/javascript" src="../scripts/branding.js"></script>
    <title>SosoObject.GreaterThan Operator</title>
    <meta name="Title" content="GreaterThan Operator" />
    <meta name="Microsoft.Help.Id" content="M:SosoMS.Common.SosoObject.op_GreaterThan(SosoMS.Common.SosoObject,SosoMS.Common.SosoObject)" />
    <meta name="Microsoft.Help.ContentType" content="Reference" />
    <meta name="System.Keywords" content="SosoObject.GreaterThan operator" />
    <meta name="System.Keywords" content="GreaterThan operator" />
    <meta name="Microsoft.Help.F1" content="SosoMS.Common.SosoObject.GreaterThan" />
    <meta name="Microsoft.Help.F1" content="SosoObject.GreaterThan" />
    <meta name="Microsoft.Help.F1" content="GreaterThan" />
    <meta name="container" content="SosoMS.Common" />
    <meta name="file" content="225193c3-e520-2013-a8e2-58c5089f2177" />
    <meta name="guid" content="225193c3-e520-2013-a8e2-58c5089f2177" />
    <meta name="Description" content="两个对象进行大于比较" />
    <link rel="stylesheet" type="text/css" href="../styles/branding-Help1.css" />
  </head>
  <body onload="SetDefaultLanguage('cs');">
    <input type="hidden" id="userDataCache" class="userDataStyle" />
    <div id="PageHeader" class="pageHeader">嗖嗖常用方法帮助集</div>
    <div class="pageBody">
      <div id="TopicContent" class="topicContent">
        <table class="titleTable">
          <tr>
            <td class="titleColumn">
              <h1>Soso<wbr />Object<span id="LST678AF15A_0" data-languageSpecificText="cpp=::|nu=."></span>Greater<wbr />Than Operator</h1>
            </td>
          </tr>
        </table>
        <div class="summary">
            两个<a href="20e9649d-e4bc-866f-da03-1debaac644b2.htm">SosoObject</a>对象进行大于比较
            </div>
        <br />
        <strong>Namespace:</strong> <a href="2a09b3c0-4db5-f6fd-af61-86e07091f341.htm">SosoMS.Common</a><br /><strong>Assembly:</strong> SosoMS.Common (in SosoMS.Common.dll) Version: 1.0.0<div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('IDB')" onkeypress="SectionExpandCollapse_CheckKey('IDB', event)" tabindex="0"><img id="IDBToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Syntax</span></div><div id="IDBSection" class="collapsibleSection"><div id="IDAB" class="codeSnippetContainer"><div class="codeSnippetContainerTabs"><div id="IDAB_tab1" class="codeSnippetContainerTab"><a href="#" onclick="ChangeTab('IDAB','cs','1','4');return false;">C#</a></div><div id="IDAB_tab2" class="codeSnippetContainerTab"><a href="#" onclick="ChangeTab('IDAB','vb','2','4');return false;">VB</a></div><div id="IDAB_tab3" class="codeSnippetContainerTab"><a href="#" onclick="ChangeTab('IDAB','cpp','3','4');return false;">C++</a></div><div id="IDAB_tab4" class="codeSnippetContainerTab"><a href="#" onclick="ChangeTab('IDAB','fs','4','4');return false;">F#</a></div></div><div class="codeSnippetContainerCodeContainer"><div class="codeSnippetToolBar"><div class="codeSnippetToolBarText"><a id="IDAB_copyCode" href="#" class="copyCodeSnippet" onclick="CopyToClipboard('IDAB');return false;" title="Copy">Copy</a></div></div><div id="IDAB_code_Div1" class="codeSnippetContainerCode" style="display: block"><pre xml:space="preserve"><span class="keyword">public</span> <span class="keyword">static</span> <span class="identifier">bool</span> <span class="keyword">operator</span> <span class="identifier">&gt;</span>(
	<span class="identifier">SosoObject</span> <span class="parameter">soso1</span>,
	<span class="identifier">SosoObject</span> <span class="parameter">soso2</span>
)</pre></div><div id="IDAB_code_Div2" class="codeSnippetContainerCode" style="display: none"><pre xml:space="preserve"><span class="keyword">Public</span> <span class="keyword">Shared</span> <span class="keyword">Operator</span> <span class="identifier">&gt;</span> ( 
	<span class="parameter">soso1</span> <span class="keyword">As</span> <span class="identifier">SosoObject</span>,
	<span class="parameter">soso2</span> <span class="keyword">As</span> <span class="identifier">SosoObject</span>
) <span class="keyword">As</span> <span class="identifier">Boolean</span></pre></div><div id="IDAB_code_Div3" class="codeSnippetContainerCode" style="display: none"><pre xml:space="preserve"><span class="keyword">public</span>:
<span class="keyword">static</span> <span class="identifier">bool</span> <span class="keyword">operator</span> <span class="identifier">&gt;</span>(
	<span class="identifier">SosoObject</span>^ <span class="parameter">soso1</span>, 
	<span class="identifier">SosoObject</span>^ <span class="parameter">soso2</span>
)</pre></div><div id="IDAB_code_Div4" class="codeSnippetContainerCode" style="display: none"><pre xml:space="preserve"><span class="keyword">static</span> <span class="keyword">let</span> <span class="keyword">inline</span><span class="keyword"> </span>(<span class="identifier">&gt;</span>)
        <span class="parameter">soso1</span> : <span class="identifier">SosoObject</span> * 
        <span class="parameter">soso2</span> : <span class="identifier">SosoObject</span>  : <span class="identifier">bool</span></pre></div></div></div><h4>Parameters</h4><dl><dt class="has-text-weight-normal"><span class="parameter">soso1</span>  <a href="20e9649d-e4bc-866f-da03-1debaac644b2.htm">SosoObject</a></dt><dd>第一个对象</dd><dt class="has-text-weight-normal"><span class="parameter">soso2</span>  <a href="20e9649d-e4bc-866f-da03-1debaac644b2.htm">SosoObject</a></dt><dd>第二个对象</dd></dl><h4>Return Value</h4><a href="https://learn.microsoft.com/dotnet/api/system.boolean" target="_blank" rel="noopener noreferrer">Boolean</a><br />如果第一个对象大于第二个对象就返回<span class="keyword"><span id="LST678AF15A_1" data-languageSpecificText="vb=True|nu=true"></span></span>，否则就返回<span class="keyword"><span id="LST678AF15A_2" data-languageSpecificText="vb=False|nu=false"></span></span></div><div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('IDFC')" onkeypress="SectionExpandCollapse_CheckKey('IDFC', event)" tabindex="0"><img id="IDFCToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Exceptions</span></div><div id="IDFCSection" class="collapsibleSection"><table><tr><th>Exception</th><th>Condition</th></tr><tr><td><a href="https://learn.microsoft.com/dotnet/api/system.nullreferenceexception" target="_blank" rel="noopener noreferrer">NullReferenceException</a></td><td /></tr><tr><td><a href="https://learn.microsoft.com/dotnet/api/system.data.invalidexpressionexception" target="_blank" rel="noopener noreferrer">InvalidExpressionException</a></td><td /></tr></table></div><div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('IDBC')" onkeypress="SectionExpandCollapse_CheckKey('IDBC', event)" tabindex="0"><img id="IDBCToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />Remarks</span></div><div id="IDBCSection" class="collapsibleSection">
            如果两个对象都是数字，则比较两个数字的大小<br />
            如果有一个对象不是数字，则抛出<a href="https://learn.microsoft.com/dotnet/api/system.data.invalidexpressionexception" target="_blank" rel="noopener noreferrer">InvalidExpressionException</a><br />
            如果任意一个对象为<span class="keyword"><span id="LST678AF15A_3" data-languageSpecificText="cpp=nullptr|vb=Nothing|nu=null"></span></span>，则抛出<a href="https://learn.microsoft.com/dotnet/api/system.nullreferenceexception" target="_blank" rel="noopener noreferrer">NullReferenceException</a></div><div class="collapsibleAreaRegion"><span class="collapsibleRegionTitle" onclick="SectionExpandCollapse('seeAlso')" onkeypress="SectionExpandCollapse_CheckKey('seeAlso', event)" tabindex="0"><img id="seeAlsoToggle" class="collapseToggle" src="../icons/SectionExpanded.png" />See Also</span></div><div id="seeAlsoSection" class="collapsibleSection"><h4>Reference</h4><div><a href="20e9649d-e4bc-866f-da03-1debaac644b2.htm">SosoObject Class</a></div><div><a href="2a09b3c0-4db5-f6fd-af61-86e07091f341.htm">SosoMS.Common Namespace</a></div></div></div>
    </div>
    <div id="PageFooter" class="pageFooter" />
  </body>
</html>